package com.os.ordersystem.mapper;

import com.os.ordersystem.bean.Food;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface FoodMapper {
    //添加食品
    public int addFood(Food food);
    //删除食品
    public int delFoodById(Integer id);
    //更新食品
    public int updateFood(Food food);

    List<Food> listBy(String foodName, Integer foodType);

//    String getById(Integer id);

    List<Food> getByPage(Map<String, Object> map);

    long getTotal(String foodName, Integer foodType);

    Food selectFoodById(Integer key);
}
